<template>
  <div id="app">
    <template v-if="route.path.startsWith('/user')">
      <router-view></router-view>
    </template>
    <template v-else>
      <BasicLayout />
    </template>
  </div>
</template>

<style>
#app {
}
</style>

<script setup lang="ts">
import BasicLayout from "@/layout/BasicLayout.vue";
import { onMounted } from "vue";
import { useRoute } from "vue-router";
const route = useRoute();

/**
 * 全局初始化函数位置
 */
const doInit = () => {
  console.log("全局初始化位置。");
};
onMounted(() => {
  doInit();
});
</script>
